Skip to content

Bug repro: Exports which shadow built-ins are incorrectly included in non-"complete" report variants#4761

Draft
Josmithr wants to merge 2 commits intomicrosoft:mainfrom
Josmithr:built-in-shadows-report-variants
Draft

Bug repro: Exports which shadow built-ins are incorrectly included in non-"complete" report variants#4761
Josmithr wants to merge 2 commits intomicrosoft:mainfrom
Josmithr:built-in-shadows-report-variants

Conversation

@Josmithr
Copy link
Contributor

@Josmithr Josmithr commented Jun 5, 2024

This was not an issue prior to the reportVariants feature, but there are now cases where exports that are aliased to avoid conflicts with built-ins result in export statements being included in reports of incorrect release variants.

I updated one of the test scenarios to include an API export called "performance", which shadows a global. It is tagged as @internal. Note that in the non-"complete" report variants, an export for the item still occurs, while the aliased declaration is (correctly) omitted.

prop: number;
}

export { performance_2 as performance }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the declaration of performance_2 was omitted, but the de-aliased export is still included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

2 participants